

import type { AppRouteRecordRaw, AppRouteModule } from '@/router/types';

import { PageEnum } from '@/enums/pageEnum';

import { mainOutRoutes } from './modules/mainOut';

import { PAGE_NOT_FOUND_ROUTE, REDIRECT_ROUTE } from '@/router/routes/basic';





export const asyncRoutes = [PAGE_NOT_FOUND_ROUTE];


export const LoginRoute: AppRouteRecordRaw = {
    path: '/login',
    name: 'Login',
    component: () => import('@/components/HelloWorld.vue'),
    meta: {
      title: '登陆',
    },
  };


  export const RootRoute: AppRouteRecordRaw = {
    path: '/',
    name: 'Root',
    redirect: PageEnum.BASE_LOGIN,
    meta: {
      title: 'Root',
    },
  };





// Basic routing without permission
export const basicRoutes = [LoginRoute, RootRoute, ...mainOutRoutes, REDIRECT_ROUTE];
